//
//  CartoonKoreaData.m
//  IMYWebView
//
//  Created by Gollum on 16/09/24
//  Copyright (c) IMY. All rights reserved.
//

#import "CartoonKoreaData.h"
#import "CartoonKoreaDetailData.h"

@implementation CartoonKoreaData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonKoreaDetailData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{

    NSMutableArray <CartoonKoreaDetailData *>*dataArray = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in valueArray) {
            CartoonKoreaDetailData *data = [CartoonKoreaDetailData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }

}
@end
